<?php

require_once dirname(__FILE__) . '/../lib/courseGeneratorConfiguration.class.php';
require_once dirname(__FILE__) . '/../lib/courseGeneratorHelper.class.php';

/**
 * course actions.
 *
 * @package    Amman to London
 * @subpackage course
 * @author     Adel Abu-Saif <adeljas@msn.com>
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class courseActions extends autoCourseActions {

    public function executeCourse_list() {


        $course_list = CourseTable::getInstance()->getCourses();
        return $this->renderText(json_encode($course_list));
    }

    public function executeListCourseUsers($request) {

        $id = $request->getParameter('id');
       

        $this->redirect("UserDos/Filter?course_id=".$id);
    }

}
